﻿
namespace Quotation
{
    public sealed class SuspendedFlag : StrictFlagBase<char, SuspendedFlag>
    {
        private SuspendedFlag(char value) : base(value) { }

        public static readonly SuspendedFlag True = new SuspendedFlag('T');

        public static readonly SuspendedFlag Flase = new SuspendedFlag('F');

        /// <summary>
        /// 隐式类型转换
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public static implicit operator SuspendedFlag(char value)
        {
            SuspendedFlag rtn;
            SuspendedFlag.TryConvert(value, out rtn);
            return rtn;

        }
    }
}
